<?php
// +----------------------------------------------------------------------
// | author: thinkphp
// +----------------------------------------------------------------------

namespace app\common\model\auth;

use app\common\model\BaseModel;

class AdminDept extends BaseModel
{
    /**
     * @notes 删除用户关联部门
     * @param $adminId
     * @return bool
     */
    public static function delByUserId($adminId)
    {
        return self::where(['admin_id' => $adminId])->delete();
    }
}